import type { BannerItem } from '@/types/home'
import { http } from '@/utils/http'

/**
 * 首页-广告区域-小程序
 * @param distributionSite 广告区域展示位置
 * @returns
 */
export const getHomeBannerAPI = (distributionSite = 1) => {
  return http.get<BannerItem[]>('/home/banner', { distributionSite })
}
